{"version":3,"file":"static/chunks/pages/[[...page]]-d50d3db774329eae.js","mappings":"qZA+BA,IAAAA,EAAA,GAEA,EAFA,EAEA,EA1BA,SAAsBC,CAAK,EAAE,IAEnBC,EAAeC,CAAKC,EAFTC,EAESD,IAA5B,CAwBaC,CAxBU,IAAKD,CAAU,CAAC,CAAC,CAAhCF,GAwBiB,YAxBF,CAWvB,MARAI,CAAAA,EAAAA,EAAAA,SAAAA,CAAS,CAAC,WACRJ,CADc,CACE,CACdK,KAAK,CAAE,MADM,IACI,CACjBC,IAAI,CAAE,CAAEC,YAAY,CAAE,iBAAkB,CAAC,CACzCC,QAAQ,CAAE,CAAEC,OAAO,CAAE,QAAQ,CAAEC,QAAQ,EAAE,EAAMC,EAAF,MAAU,EAAE,EAAMC,EAAF,WAAe,EAAE,CAAK,CAErF,CAAQ,CACV,CAAC,CAAE,EAAE,CAAC,CACCC,CAAAA,EAAAA,EAAAA,GAAAA,CAAA,CAACC,EAAAA,qBAAqB,CAAAC,aAAA,wVAAKhB,GACpC,EADyC,CAAG,CAAC,eCnB7C,4CACA,eACA,WACA,OAAe,EAAQ,KAAoC,CAC3D,EACA,SAFsB","sources":["webpack://_N_E/./pages/[[...page]].tsx","webpack://_N_E/?7002"],"sourcesContent":["import { GetServerSideProps } from 'next';\nimport { PageRendererComponent, prePageCall, useSession } from '@marriott/mi-headless-utils';\nimport { mockModel } from '../mocks/mockModel';\nimport { envVarKeys } from '../constants/envVarKeys';\nimport { useEffect } from 'react';\nimport operationSignatures from '../constants/operationSignatures.json';\n\nfunction pageRenderer(props) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const { updateDatalayer } = useSession();\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(() => {\n updateDatalayer({\n event: 'PAGEVIEW', // provide relevant event name\n USER: { userLoggedIn: 'unauthenticated' },\n METADATA: { site_id: 'Luxury', env_gdpr: true, env_ccpa: true, env_marketing: true },\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n } as any);\n }, []);\n return ;\n}\n\n//Any product specific page data apart from common data like session, datalayer\n//can be returned from this function and the same is passed as props to the page Component\nconst luxurySpecificData = async () => {\n return { operationSignatures: operationSignatures, nextPublicEnvKeys: [...Object.keys(envVarKeys)] };\n};\n\n//Make pre page calls like session, datalayer, fetch model.json, producSpecifc data etc\n//at server side and pass the data is passed as props to page component.\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const getServerSideProps: GetServerSideProps = prePageCall(luxurySpecificData, mockModel);\nexport default pageRenderer;\n","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/[[...page]]\",\n function () {\n return require(\"private-next-pages/[[...page]].tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/[[...page]]\"])\n });\n }\n "],"names":["__N_SSP","props","updateDatalayer","_useSession","useSession","pageRenderer","useEffect","event","USER","userLoggedIn","METADATA","site_id","env_gdpr","env_ccpa","env_marketing","_jsx","PageRendererComponent","_objectSpread"],"sourceRoot":"","ignoreList":[]}